package cn.com.git.workflow.common;

/**
 * 工作流程操作类型
 * @author zhangzhenfu
 * @Description
 * @date 2020/4/12 0012 10:16
 */
public enum WorkFlowNodeEnum {

    START("start","start","发起流程",true,false),

    GENERAL(null,"general","普通节点",false,false),

    MEETING(null,"meeting","会签节点",false,false),

    COMPETE(null,"compete","抢占节点",false,false),

    END("end","end","结束流程",false,true)

    ;

    private String code;

    private String type;

    private String name;

    private boolean start;

    private boolean end;

    WorkFlowNodeEnum(String code, String type, String name, boolean start, boolean end) {
        this.code = code;
        this.type = type;
        this.name = name;
        this.start = start;
        this.end = end;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isStart() {
        return start;
    }

    public void setStart(boolean start) {
        this.start = start;
    }

    public boolean isEnd() {
        return end;
    }

    public void setEnd(boolean end) {
        this.end = end;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
